<?php

namespace app\common\model\Depot;

use think\Model;


class Product extends Model
{
    protected $name = 'depot_storage_product';

    // 关联表查询
    public function products()
    {
        return $this->belongsTo('app\common\model\Product\Product','proid','id',[],'LEFT')->setEagerlyType(0);
    }
    public function storage()
    {
        return $this->belongsTo('app\common\model\Depot\Storage','storageid','id',[],'LEFT')->setEagerlyType(0);
    }
}
